﻿using Photo.Core.EnumSummary.System;

namespace Photo.Application.System.Code.Dto
{
    /// <summary>
    /// 字段dto
    /// </summary>
    public class FieldDto
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string FieldName { get; set; }
        /// <summary>
        /// 字段详情
        /// </summary>
        public TableColumnDto FieldInfo { get; set; }
        /// <summary>
        /// 字段类型
        /// </summary>
        public EnumSysCodeFieldType FieldType { get; set; }
        /// <summary>
        /// 数据源类型
        /// </summary>
        public EnumSysCodeDataSourceType DataSourceType { get; set; }
        /// <summary>
        /// 数据源
        /// </summary>
        public string DataSource { get; set; }
        /// <summary>
        /// 是否必填
        /// </summary>
        public bool? IsRequired { get; set; }
    }
}
